package com.guoxue.model;

import java.util.List;

import com.guoxue.domain.BookConfigVo;
import com.guoxue.domain.PlanConfigVo;

public class BookConfig extends BookConfigVo {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private List<ChapterConfig> chapters;
	private List<PlanConfigVo> planConfigs;
	
	public BookConfig(int bookId, String bookName, String writer, String reader, int beginChapterId,
			int endChapterId, int beginPlanId, int endPlanId) {
		//这里的实现可以用super或者this，super属于纯继承；this属于覆写
		super();
		super.setBookId(bookId);
		super.setBookName(bookName);
		super.setWriter(writer);
		super.setReader(reader);
		super.setBeginChapterId(beginChapterId);
		super.setEndChapterId(endChapterId);
		super.setBeginPlanId(beginPlanId);
		super.setEndPlanId(endPlanId);
	}



	public BookConfig(int bookId) {
		//这里的实现可以用super或者this，super属于纯继承；this属于覆写
		super.setBookId(bookId);
	}
	
	public List<ChapterConfig> getChapters() {
		return chapters;
	}

	public void setChapters(List<ChapterConfig> chapters) {
		this.chapters = chapters;
	}

	public List<PlanConfigVo> getPlanConfigs() {
		return planConfigs;
	}

	public void setPlanConfigs(List<PlanConfigVo> planConfigs) {
		this.planConfigs = planConfigs;
	}
}

